const { Schema, model } = require('mongoose');
const usersSchema = new Schema({
    userName: String,
    userAccount:String,
    userPassWord: String,
    userPhone:String,
    delete: {
        type: Boolean,
        default: false
    },
    sellersId: {
        type: Schema.Types.ObjectId,
        ref: "sellersModel",
        default: "0"
    },
}, { versionKey: false });
const usersModel = model('usersModel', usersSchema, 'users');
module.exports = {
    usersModel
}